/* ── 1. Reset en premier, toujours ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── 2. Body mobile ── */
body {
  display: flex;
  flex-direction: column;
  /* align-items supprimé → stretch par défaut = footer pleine largeur */
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-weight: 700;
  font-family: Geneva, Tahoma, sans-serif;
  background: linear-gradient(to bottom, #535353, rgb(187, 185, 185), #535353);
  margin: 0;
}

#title {
  font-family: 'Holtwood One SC', serif;
  color: white;
  margin-top: 20px;
}

.login {
  background-image: url("img/aka-thailand.jpg");
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  width: 350px;
  height: 250px;
  border-radius: 39px;
  background-blend-mode: darken;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  place-items: center;
  margin-top: 50px;
    margin-bottom: unset;

}

.login h1 {
  color: rgb(209, 209, 209);
  margin-left: 100px;
  font-size: 40px;
  font-family: "Bungee", sans-serif;
  font-weight: 400;
}

input {
  margin-bottom: 15px;
  zoom: 1.3;
  margin-left: 50px;
  background-color: #868686;
  border: none;
  border-radius: 5px;
  padding-left: 5px;
}

input::placeholder {
  color: rgb(173, 173, 173);

}

#go {
  background-color: #CE5B5B;
  color: rgb(32, 32, 32);
  font-weight: 700;
  margin-left: 90px;
  padding-left:5px;
  padding-right:5px;
}

.desktop-txt {

  display: none;
}

.mainBox {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 700;
  width: 300px;
  background-color: #D9D9D9;
  border-radius: 28px;
  padding: 20px;
    margin-left: 10%;
        margin-bottom: 50px;


}

#cameraFeed {
  height: 50px;
  width: 100px;
}

.btn {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
  place-items: center;
  margin: 15px;
  margin-left: 15px;
  margin-right: 15px;
}

button {
  border-radius: 30px;
  border-color: transparent;
  height: 60px;
  width: 120px;
  color: rgb(0, 0, 0);
  background-color: #A62828;
  font-size: 16px;
  font-weight: 1000;
}

#save-btn {
  place-self: center;
  text-align: center;
}

/* ⚠️ Renommez #sceen → #Ecrant dans le HTML aussi */
#Ecrant {
  background-color: #5C5B5B;
  border-radius: 30px;
  height: 100px;
  width: 300px;
  display: flex;
  color: #D9D9D9;
  flex-wrap: wrap;
  font-size: 50px;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  text-align: center;
  margin: 10px 0;
  overflow: auto;
}

#save-el {
  font-weight: 900;
  background-color: #868686;
  border-radius: 30px;
  height: 70px;
  max-height: 100%;
  max-width: 100%;
  width: 250px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  overflow-y: auto;
  padding: 10px;
}

#refresh-btn {
  margin-top: 5%;
  width: 100%;
  grid-column: span 2 / span 2;
}

#camera-btn {
  background-color: rgba(247, 87, 87, 0.966);
}

#aside {
  background-color: #CE5B5B;
  width: 330px;
  height: 350px;
  margin: 20px;
  border-radius: 100px;
  color: white;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 10px;
}

/* ── Footer mobile ── */
footer {
  background-color: #525252;
  height: 150px;
  width: 100%; /* ← ajouté */
  display: flex;
  align-items: center;
  text-align: center;
  flex-direction: column;
  padding: 100px;
  padding-top: 0;
  color: white;
  align-self: stretch; /* ← force pleine largeur même avec align-items:center sur body */
    padding-top: 10px;
}

/* ── Desktop ── */
@media (min-width: 1024px) {
  body {
  display: flex;
  flex-wrap: wrap;  
    width: 100%;
    align-items: unset
  }

#title {
  font-family: 'Holtwood One SC', serif;
  color: white;
  margin-left: 35vw;
    margin-top: 20px;
    margin-bottom: 50px;
}


  footer {
    height: 100px;
    justify-content: space-between;
    width: 100%;


  }

  main {
    display: flex;
    flex-direction: row-reverse;
    place-items: center;

    margin-bottom: 100px;
    margin-right: 200px;
  }

  .login {


    margin-left: 100px;
    zoom :1.2;
    
    margin-top: unset;

  }

  .desktop-txt {

    width: 500px;
    height:250px;

    color :white;
    text-align: center;
    margin-left: 50px;
  }

  .login ,
  .desktop-txt {
    display: inline-block;
    vertical-align: top;
  }

  #aside {

    width: 600px;
    padding-top: 15px;
    
    margin-right: unset;
    margin-left: 70px;


  }
  nav{
    
    height: 0px;
  }

  form {
    
    margin-top: 30px;

  }


}